package com.shopping.nacos.controller;

import com.shopping.nacos.dto.MyDataSource;
import com.shopping.nacos.dto.Wx;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @className: MemberController
 * @Description: 控制层
 * @author: JiaZhenpeng
 * @data: 2022/7/300:18
 */
@RestController
@RequestMapping("/member")
@Slf4j
public class MemberController {

    @Autowired
    MyDataSource myDataSource;



    @GetMapping("/get")
    public String getSource(){
        log.info(myDataSource.toString());
        return "dataSource-password:"+ myDataSource.toString();
    }


}
